//
//  RegisterSuccessViewController.swift
//  ezyform
//
//  Created by MoennigQ on 10/9/20.
//  Copyright © 2020 Client.Solution Pty Ltd. All rights reserved.
//

import UIKit

class RegisterSuccessViewController: BaseViewController {
    let customView = RegisterSuccessView()
    override func viewDidLoad() {
        super.viewDidLoad()
        self.initUI()
    }
    func initUI(){
        self.view = self.customView
        self.customView.setTitleInfo(R.string.localizable.register())
        self.customView.backToPreBtn.addTarget(self, action: #selector(backToLoginVC), for: UIControl.Event.touchUpInside)
        self.customView.okBtn.addTarget(self, action: #selector(backToLoginVC), for: UIControl.Event.touchUpInside)
    }
    @objc
    func backToLoginVC(){
        self.navigationController?.popToRootViewController(animated: true)
    }
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        self.navigationController?.setNavigationBarHidden(true, animated: false)
    }
}
